<{include file="public/header.html"}> 
	<div class="w1180-con video-details">
		<div class="adv-box mt20">
			<a href="javascript:;"><img src="<{$style_dir}>/img/video/adv-01.jpg" alt="" /></a>
		</div>
		<!--视频-->
		<div class="w980 mt25">
			<div class="video-introduce">
				<div class="video-box">
					<p><{$item['title']}></p>
					<div class="video-player">
						<div class="enjoy-video" id="a1"></div>
					</div>
					<div class="video-action f-cb">
                                            <input type="hidden" id="_T_video_info" data-vid="<{$item['video_id']}>" data-comment="<{$comment_id}>"/>
                                            <input type="hidden" id="_T_account_info" value="<{$bbs_user_info['balance']}>"/>
						<div class="video-share fl share">
							分享给朋友：
                                                        <a class="icon-tab icon-video-qq qzone" data-key="qq" data-title="溜溜视频专栏--《<{$item['title']}>》" data-content="" data-ref="<{$item['share_url']}>"></a>
                                                        <a class="icon-tab icon-video-wx sweixin" data-key="wx" data-title="溜溜视频专栏--《<{$item['title']}>》" data-wx-qrcode="/trcode.html?text=<{$item['share_url']|urlencode}>&size=150&level=H"></a>
                                                        <a class="icon-tab icon-video-sina sina" data-key="wb" data-title="溜溜视频专栏--《<{$item['title']}>》" data-content="" data-ref="<{$item['share_url']}>"></a>
							<!--<a class="icon-tab icon-video-collect <{if $item['is_favorite']}>collected<{else}><{/if}>" data-value="<{$item['is_favorite']}>"></a><a class="icon-tab icon-video-download"></a><a class="icon-tab icon-video-phone"></a>-->
						</div>
						<div class="fr browse pr30">
                                                    <a href="javascript:;" class="read_num_show"><{$item['readnum']}></a>
                                                    <a href="javascript:;" class="<{if !$item['is_like_or_hate_invilib']}>video-like-btn<{/if}> <{if $item['is_like']}>like<{/if}>" data-value="<{$item['is_like']}>" data-type="like" title="灰常喜欢"><{$item['likes']}></a> 
                                                    <a href="javascript:;" class="<{if !$item['is_like_or_hate_invilib']}>video-like-btn<{/if}> <{if $item['is_hate']}>hate<{/if}>" data-value="<{$item['is_hate']}>" data-type="hate" title="感觉还行"><{$item['hates']}></a>
						</div>
					</div>
					<script type="text/javascript">
					    //分享给朋友，鼠标hover效果
					    $(".video-box  .video-action .video-share a").hover(function () {
					        var index = $(this).index();
					        $(this).css('background-position', index * -32 + 'px ' + '-542px');
					    }, function () {
					        var index = $(this).index();
					        $(this).css('background-position', index * -32 + 'px ' + '-520px');
					    });
					</script>
				</div>
				<p class="video-detail"><{$item['desc']}></p>
			</div>
			<div class="reward mb30">
                            <a href="javascript:void(0);" class="btn icon-index video-reward-btn" onclick="award_video();" title="点击打赏"></a>
				<{if $reward}>
                                <div class="border">
                                        <span class="num bjf"><p>已有 <{$reward|count}> 人打赏此视频</p></span>
                                        <{if count($reward) > 11}>
                                        <span class="all">查看更多</span>
                                        <{/if}>
                                        <ul class="overhide">
                                            <{foreach from=$reward item=val key=key}>
                                                <{if ($key + 1) <= 11}>
                                                <li><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>"/></a></li>
                                                <{/if}>
                                            <{/foreach}>
                                            <{if count($reward) > 11}>
                                            <div class="reply-hide">
                                                <{foreach from=$reward item=val key=key}>
                                                <{if ($key + 1) > 11}>
                                                <li><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>"/></a></li>
                                                <{/if}>
                                                <{/foreach}>
                                            </div>
                                            <{/if}>
                                        </ul>
                                </div>
                                <{/if}>
			</div>
                        <script type="text/javascript">
                            $(function(){
                                $('.reward .border .all').on('click',function(){
                                    $(this).parents('.reward').find('.reply-hide li').toggle(500);
                                    if( $(this).text() == '查看更多' ){
                                        $(this).text('收起');
                                    }else{
                                        $(this).text('查看更多');
                                    }
                                });
                            })
                        </script>
		</div>
		<!--回复框-->
		<div class="w980 video-reply" id="write-reply">
                    <div class="reply-comment mt30 f-cb" style="margin-top: 40px;">
                        <a href="javascript:void(0);" class="header fl">
                            <img src="<{$bbs_user_info['head_img']}>" onerror="this.onerror=null;this.src='http://static.tan66.com/upfiles/head.png';">
                        </a>
                        <div class="box fl ml30">
                            <dl>
                                <dt class="overhide ptb10">
                                    <!--表情 @-->
                                    <span class="emotion fl ml10" id="face"></span>
                                    <!--标签-->
                                    <div class="reply-tags fr">
                                        <ul>
                                            <li data-tag="1">
                                                <a href="javascript:void(0);">
                                                        真没<br>看头<i></i>
                                                </a>
                                            </li>
                                            <li data-tag="2">
                                                <a href="javascript:void(0);">
                                                        一般<br>般<i></i>
                                                </a>
                                            </li>
                                            <li data-tag="3">
                                                <a href="javascript:void(0);">
                                                        哎呦<br>不错<i></i>
                                                </a>
                                            </li>
                                            <li data-tag="4">
                                                <a href="javascript:void(0);">
                                                        猴腮<br>雷<i></i>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </dt>
                                <dd>
                                    <div class="plr5">
                                        <div class="enter-input">
                                            <textarea class="input emotion" id="comment-content" name="saytext" placeholder="写下你的评论..."></textarea>
                                        </div>
                                    </div>
                                </dd>
                            </dl>
                            <!--回复按钮-->
                            <input type="submit" class="sub_btn reply-submit fr mt20 V-comment-btn comment-btn" value="发表回复" data-disable-val="提交中..." data-comment-id="" data-comment-uuid="">
                        </div>
                    </div>
		</div>
		<!--所有评论-->
		<div class="all-comment">
			<div class="title f-cb">
                            <p class="fl">所有评论<span class="total_num">（0）</span></p>
                            <div class="pages fr show-comment-pagination ml30"></div>
                            <div class="fr mt20">共<span class="comment-total-page">0</span>页/<span class="comment-total-count">0</span>条</div>
			</div>
                        <{if $hot_comments}>
			<!--推荐精华-->
                        <{/if}>
			<div class="essence mt30">
				<p class="title">最新发表</p>
				<div class="comment-box-list">
				</div>
				<div class="comment-bottom f-cb">
                                    <div class="fr ml30" class="show-comment-pagination">
                                    </div>
                                    <div class="fr">共<span class="comment-total-page">0</span>页/<span class="comment-total-count">0</span>条</div>
				</div>
			</div>
		</div>
		<div class="mt20">
			<a class="go-comment tc goto-comment_video-box"><b class="icon-com icon-import"></b>添加新评论</a>
		</div>
                <!--广告-->
		<div class="adv-box pt15">
                    <a href="javascript:;"><img src="<{$style_dir}>/img/video/adv-02.jpg"></a>
		</div>
	</div>
	<!--打赏支持--弹窗-->
	<div class="reward-popup video-reward-box" style="display: none">
		<div class="reward-title">《<{$item['title']}>》<a href="javascript:void(0);" class="fr icon icon-close support-close close"></a></div>
		<div class="author tc mt20">
			<strong class="quoting mr5" style="vertical-align: top;">“</strong><span class="quot-con">如果我的视频对您有用，请随意打赏,您的支持将鼓励我继续分享。</span><strong style="vertical-align: text-top;" class="quoting">”</strong>
		</div>
		<div class="reward-content">
			<form id="tan-award-form" method="post" action="<{eval url('action_award_video_order')}>" target="_blank" onsubmit="return action_award_video_order_pay_do(this);">
				<ul>
					<li>
						<span class="rewart-item">我的剩余溜珠：</span><i class="num"><{if $bbs_user_info['balance']}> <{$bbs_user_info['balance']}><{else}>0<{/if}></i>个
					</li>
					<li>
						<span class="rewart-item">打赏寄语：</span><input type="text" class="award-say award" id="awardSay" name="awardNum" placeholder="这个视频太棒了，犒劳一下，希望后续更加精彩..."><br>
						<label></label>
					</li>
					<li>
                                            <span class="rewart-item">打赏溜珠个数：</span><input type="text" class="award-num award" id="awardNum" name="awardNum" value="1" maxlength="7" placeholder="溜珠个数"  autocomplete="off">
						<em>个</em>
					</li>
					<li>
						<span class="rewart-item">需支付人民币：</span><input type="text" class="award-money award" id="awardMoney" name="awardMoney" value="1.00" placeholder="5" readonly="readonly" style="font-size: 18px;">
						<em>元</em>
					</li>
					<li class="pay">
						<span class="rewart-item w100px"></span>
						<a class="icon-com icon-items" data-pay="alipay"><b class="icon-com icon-support-alipay alipay"></b>支付宝支付</a>
						<a class="icon-com icon-items" data-pay="yue"><b class="icon-com <{if $bbs_user_info['balance'] >= 1}>icon-support-yue<{else}>icon-support-noyue<{/if}> yue"></b>余额支付</a>
					</li>
					<li class="mt20">
						<span class="rewart-item"></span>
                                                <input type="hidden" id="awardAction" name="action" value="video_reward"/>
                                                <input type="hidden" id="awardKey" name="awardKey" value="<{$SESSIONID}>"/>
                                                <input type="hidden" id="videoId" name="videoId" value="<{$item['video_id']}>"/>
                                                <input type="hidden" id="awardPay" name="awardPay" value=""/>
                                                <input type="submit" class="support-pay" value="点击打赏" style='margin-left: -5px;'/>
                                                <label class="ml15 load-show"></label>
					</li>
					<li><span class="rewart-item"></span></li>
				</ul>
			</form>
		</div>
	</div>
	<script type="text/javascript" src="/static/public/ckplayer/ckplayer.js" charset="utf-8"></script>
	<script type="text/javascript" src="<{$style_dir}>/js/video.widget.js" charset="utf-8"></script>
	<script type="text/javascript">
            var is_goto_comment =<{if $comment_id}>true<{else}>false<{/if}>;
            var is_load_face=true;
            var flashvars={
                f:'<{$item["link_url"]}>',
                c:0,
                b:1,
                p:1,
                z:'http://xdyy.tv/jutoplayer/loading.html'
                
            };
            var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
            var video=['<{$item["link_url"]}>'];
            CKobject.embed('/static/public/ckplayer/ckplayer.swf','a1','ckplayer_a1','100%','400',false,flashvars,video,params);
            function ckmarqueeadv(){return ' '}
            function closelights(){//关灯
                alert(' 本演示不支持开关灯');
            }
            function openlights(){//开灯
                alert(' 本演示不支持开关灯');
            }
            $(function(){showVideoComment();showVideoRead();});
            
	</script>

<!--footer-->
<{include file="public/footer.html"}>